package icu.zqyhdm.blog.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @Description 评论上传
 * @Author lifu
 * @Date 2021/6/22 14:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "评论上传")
public class CommentUploadVo {

    /**
     * 回复用户id
     */
    @ApiModelProperty(value = "回复用户id")
    private Integer parentCommentUser;

    /**
     * 评论文章id
     */
    @ApiModelProperty(value = "文章id")
    private Integer articleId;

    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空")
    @ApiModelProperty(value = "评论内容")
    private String content;

    /**
     * 父评论id
     */
    @ApiModelProperty(value = "评论父id")
    private Integer parentCommentId;
}
